/**
 * 我的页面相关api调用
 */


import {get, post, upload } from '../../request'

///发布宠物
export const petRealse = (params) => post("/user/pet", params);

//上传宠物照片


export const uploadPetImg = (params) => upload("/oss/upload", params);

//查询我的宠物列表
export const getMyPetList = (params) => get("/user/pets", params);

//添加宠物日志
export const addPetLog = (params) => post("/user/action", params);

//查询当前宠物的日志信息
export const getCurrentPetLog = (params) => get("/user/action/" + params.petId + "?date=" + params.date);

///查询当前宠物的十天的action日期选项
export const getAllLeftAction = (petId) => get("/user/action/date/" + petId);

//获取当前用户下所有的宠物闹钟信息
export const getAllByUserLock = (userId) => get("/user/Task/" + userId);

//给指定宠物添加闹钟

export const addPetLockById = (params) => post("/user/Task", params);

//根据id删除闹钟

export const deletePetLock = (params) => post("/user/delete/" + params.petId);

//登录
export const login = (params) => post("/user/noF/login", params);

//获取用户信息
export const getUserInfo = (userId) => get("user/info");

//注册
export const regist = (params) => post("/user/noF/reg", params);